<script setup>
import hUpload from './components/h-upload.vue'
import { ref } from 'vue'
let imageUrl = ref('')

const getImageUrl = (url) => {
  imageUrl.value = url
}
</script>

<template>
  <h-upload class="upload-view" @getImageUrl = "getImageUrl"></h-upload>

  {{ imageUrl }}
</template>

<style scoped>
.upload-view {
  width: 240px;
}
</style>
